package com.bd.wechat.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统维护的
 * </p>
 *
 * @author linhs
 * @since 2024-12-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("f_store")
public class Store implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER)
    private Integer id;

    private String storeName;

    private String address;

    /**
     * 品牌编码
     */
    private String brandCode;

    /**
     * 品牌名字
     */
    private String brandName;

    /**
     * 区域编码
     */
    private String areaCode;

    /**
     * 经度
     */
    private Double lon;

    /**
     * 维度
     */
    private Double lat;

    private String province;

    private String city;

    /**
     * 区
     */
    private String area;

    /**
     * 备注
     */
    private String notes;

    /**
     * 添加时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date updateTime;

    /**
     * 是否删除
     * 0-未删除
     * 1-已删除
     */
    private Integer isDel;

    public Store() {
    }


    public Store(Double lon, Double lat) {
        this.lon = lon;
        this.lat = lat;
    }
}
